package org.eweb4j.orm.dao.config.bean;

import java.util.ArrayList;
import java.util.List;

import org.eweb4j.orm.DBType;
import org.eweb4j.orm.dao.config.DAOConfigConstant;
import org.eweb4j.util.xml.tag.XmlTag;
import org.eweb4j.util.xml.tag.XmlTagType;

/**
 * DAO组件用来存取配置信息 的bean
 * 
 * @author cfuture.aw
 * @since v1.a.0
 */
public class DBInfoConfigBean {

	@XmlTag(type = XmlTagType.attriType, value = DAOConfigConstant.MYDBINFO)
	private String dsName;
	@XmlTag(value = DBType.MYSQL_DB)
	private String dataBaseType;
	@XmlTag(type = XmlTagType.listClassType)
	private List<Property> property = new ArrayList<Property>();

	// @XmlTag(type = XmlTagType.attriType, value =
	// "org.eweb4j.orm.dao.config.bean.DBInfoConfigBean")
	// private String xmlBean;

	public String getDsName() {
		return dsName;
	}

	public void setDsName(String dsName) {
		this.dsName = dsName;
	}

	public List<Property> getProperty() {
		return property;
	}

	public void setProperty(List<Property> properties) {
		this.property = properties;
	}

	// public String getXmlBean() {
	// return xmlBean;
	// }
	//
	// public void setXmlBean(String xmlBean) {
	// this.xmlBean = xmlBean;
	// }

	public String getDataBaseType() {
		return dataBaseType;
	}

	public void setDataBaseType(String dataBaseType) {
		this.dataBaseType = dataBaseType;
	}

	@Override
	public String toString() {
		return "DBInfoConfigBean [dsName=" + dsName + ", dataBaseType="
				+ dataBaseType + ", property=" + property + "]";
	}

}
